import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist-uni'

// 导出所有 store 模块
export * from './modules/theme'
export * from './modules/giftbook'
export * from './modules/contact'
export * from './modules/category'
export * from './modules/settings'

// 创建 pinia 实例
const pinia = createPinia()

// 使用持久化插件
pinia.use(piniaPersist)

// 导出 store 实例
export default pinia 